package cn.com.ayqu.module.erp.controller.admin.activityuser.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 用户参与活动新增/修改 Request VO")
@Data
public class ActivityUserSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "20752")
    private Long id;

    @Schema(description = "活动id", requiredMode = Schema.RequiredMode.REQUIRED, example = "6966")
    @NotNull(message = "活动id不能为空")
    private Long activityId;

    @Schema(description = "用户id", requiredMode = Schema.RequiredMode.REQUIRED, example = "27572")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @Schema(description = "首次参与活动付出金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "首次参与活动付出金额不能为空")
    private BigDecimal activityMoney;

    @Schema(description = "取货时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "取货时间不能为空")
    private LocalDateTime pickUpTime;

    @Schema(description = "取货描述", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "取货描述不能为空")
    private String pickUpDesc;

    @Schema(description = "取货签名", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "取货签名不能为空")
    private String userSign;

    @Schema(description = "消费类型 1消费 2退货", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "消费类型 1消费 2退货不能为空")
    private Integer type;

    @Schema(description = "消费、退货金额", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "消费、退货金额不能为空")
    private BigDecimal useMoney;

}